//
//  aaaaaaaaaaaaaViewController.m
//  shopping
//
//  Created by 马田成 on 2017/9/30.
//  Copyright © 2017年 qianyi. All rights reserved.
//

#import "aaaaaaaaaaaaaViewController.h"
#import "MyOrderViewController.h"
@interface aaaaaaaaaaaaaViewController ()

@end

@implementation aaaaaaaaaaaaaViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    [self leftNavHide];
    
    // Do any additional setup after loading the view from its nib.
}
- (IBAction)sureClick:(UIButton *)sender {
    
    if ([self.type isEqualToString:@"1"]) {
        
        MyOrderViewController *myoderVC=[[MyOrderViewController alloc]init];
        myoderVC.hidesBottomBarWhenPushed=YES;
        myoderVC.index = 2;
        myoderVC.type = @"1";
        [self.navigationController pushViewController:myoderVC animated:YES];
//        [self.navigationController presentViewController:myoderVC animated:YES completion:^{
//            
//            
//        }];
        
    }else {
    
        [self.navigationController popViewControllerAnimated:YES];
        
    }
    

    
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
